package com.leo.dubbo.service.impl;

import com.alibaba.dubbo.config.annotation.Service;
import com.leo.dubbo.service.demo.LeoDemoService;
import org.springframework.stereotype.Component;

/**
 * @author liusl
 * @date 2019/1/10-13:37
 */
@Service(
        version = "${demo.service.version}",
        application = "${dubbo.application.id}",
        protocol = "${dubbo.protocol.id}",
        registry = "${dubbo.registry.id}")
public class DemoServiceImpl implements LeoDemoService {
    @Override
    public String sayHello(String name) {
        return "hello," + name;
    }
}
